/sbin/udev no longer exists in upstream udev, so use udevinfo for
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 7 Feb 2006 23:30:50 +0000 (00:30 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 7 Feb 2006 23:30:50 +0000 (00:30 +0100)
version info.

Signed-off-by: Jeremy Katz <katzj@redhat.com>
tools/examples/Makefile

index a94ea7aa0a31cdb83df6199540177bcdc96fde8e..eead30d7c0df4e572bbbd614c597b7f8c9a9c6ea 100644 (file)
@@ -42,7 +42,7 @@ DE = $(shell readlink -f $(DESTDIR))
 ifeq ($(findstring $(DI),$(DE)),$(DI))
 HOTPLUGS=install-hotplug install-udev
 else
-ifeq ($(shell [ -x /sbin/udev ] && [ ! -z `/sbin/udev -V` ] && [ `/sbin/udev -V` -ge 059 ] && echo 1),1)
+ifeq ($(shell [ -x /usr/bin/udevinfo ] && [ `/usr/bin/udevinfo -V | sed -e 's/^[^0-9]* \([0-9]\{1,\}\)[^0-9]\{0,\}/\1/'` -ge 059 ] && echo 1),1)
 HOTPLUGS=install-udev
 else
 HOTPLUGS=install-hotplug